using System.ComponentModel.DataAnnotations;
using SupplierCustomerManagement.Domain.Entities;

namespace SupplierCustomerManagement.Domain.ReportForms
{
    /// <summary>
    /// 羊场信息实体
    /// 代表系统中的羊场基本信息，包含羊场名称、地址、联系人等
    /// </summary>
    public class Farm : BaseEntity
    {
        /// <summary>
        /// 羊场名称
        /// </summary>
        [Required]
        [StringLength(100)]
        public string FarmName { get; set; }

        /// <summary>
        /// 羊场编码
        /// </summary>
        [StringLength(50)]
        public string? FarmCode { get; set; }

        /// <summary>
        /// 地址
        /// </summary>
        [StringLength(200)]
        public string? Address { get; set; }

        /// <summary>
        /// 联系人
        /// </summary>
        [StringLength(50)]
        public string? ContactPerson { get; set; }

        /// <summary>
        /// 联系电话
        /// </summary>
        [StringLength(20)]
        public string? Phone { get; set; }

        /// <summary>
        /// 是否启用
        /// </summary>
        public bool IsActive { get; set; } = true;
    }
}
